﻿//-----------------------------------------------------------------------------
//<filedescription file="About_Extension.cs" company="Microsoft">
//  <copyright>
//     Copyright © Microsoft Corporation.  All rights reserved.
//     ***  DESIGNATED SAMPLE CODE (per the included software license terms) ***
//      THIS CODE SAMPLE IS MADE AVAILABLE TO YOU WITHOUT WARRANTY OF ANY KIND
//      AND CONFERS NO RIGHTS ON YOU WHATSOEVER EXCEPT THE RIGHT TO REVIEW IT
//      SOLELY AS A REFERENCE.  THE ENTIRE RISK OF USE OR RESULTS FROM USE OF
//      THIS CODE SAMPLE REMAINS WITH YOU.
//  </copyright>
//  <purpose>
//     A method that extends the Help - About form to provide
//     OEM-specific functionality (branding and potentially additional features).
//  </purpose>
//  <notes>
//  </notes>
//</filedescription>
//-----------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.ConfigurationManagement.AdminConsole;
using Microsoft.ConfigurationManagement.ManagementProvider;
using Microsoft.ConfigurationManagement.AdminConsole.TaskSequenceEditor;
using Microsoft.ConfigurationManagement.AdminConsole.Common;
using Microsoft.ConfigurationManagement.AdminConsole.OsdCommon;
using Microsoft.ConfigurationManagement.OemDeployment;
using Microsoft.ConfigurationManagement.IntegrationDevelopmentKit;

namespace Microsoft.ConfigurationManagement.OemDeployment.Example
{
    public partial class GenericAbout : About
    {
        /// <summary>
        /// 
        /// </summary>
        public GenericAbout()
        {
            SetupCustomProperties();
            InitializeComponent();
        }

        #region Overridden methods for customization

        private void SetupCustomProperties()
        {
            this.pictureBoxLogo.Image = Properties.Resources.OEMLogo;
            this.textBoxFormHeader.Text = Properties.Resources.About_Header;
            this.Text = Properties.Resources.About_Title;
            this.textBoxFormHeader.SelectAll();
            this.textBoxFormHeader.SelectionAlignment = HorizontalAlignment.Center;
            this.linkCopyright.Text = Properties.Resources.About_CopyrightLinkText;
            this.richTextBoxCenterContent.Text = Properties.Resources.About_CenterText;
            
        }


        #endregion

        private void linkCopyright_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start(Properties.Resources.About_CopyrightLink);
        }

        private void linkSupport_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start(Properties.Resources.About_SupportLink);
        }

        private void pictureBoxLogo_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start(Properties.Resources.About_LogoLink);
        }

        private void textBoxFormHeader_TextChanged(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start(Properties.Resources.About_ProductLink);
        }
        
        
       
    }
}
